import service from './service'

export default {
    //多租户切换接口
    switchTenantLogin(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + "/uc-manage/uc-power-api/tenant/user/switchTenantLogin", params);
    },
    //切换租户列表
    tenantListForSwitch(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + "/uc-saas/uc-saas-api/saas/manage/tenantListForSwitch", params);
    },
    // 获取真实token
    getRealToken(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + "/uc-saas/uc-saas-api/saas/user/getToken", params);
    },
    // 获取临时token
    getTempToken(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + "/uc-saas/uc-saas-api/saas/user/getTempToken", params);
    },
    // 获取真实UserId
    getTokenUserId(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + "/uc-saas/uc-saas-api/saas/user/getTokenUserId", params);
    },
    // 自定义列
    queryColumnList(params) {
        return service.post('/contract-client-web/customColumn/queryColumnList', params);
    },
    // 设置自定义列
    setCustomTableColumns(params) {
        return service.post('/contract-client-web/customColumn/setCustomTableColumns', params);
    },
    // 省市区
    areaTreeList(params) {
        return service.post('/contract-client-web/contract/areaTreeList', params);
    },
    // 关联数据选择的数据源
    queryProjectDetailRelatedData(params) {
        return service.post('/contract-client-web/templateDefinition/queryProjectDetailRelatedData', params);
    },
    // 查询部门 OA
    deptTree(params) {
        return service.post(process.env.VUE_APP_BASE_G_API + "/uc-pc/uc-manage-api/dept/deptTree", params);
    },
    // 查询员工 OA
    // queryDeptUsers(params) {
    //     return service.post(process.env.VUE_APP_BASE_G_API + "/uc-pc/uc-manage-api/dept/queryDeptUsers", params);
    // },
    // 查询部门 OA
    queryDeptTree(params) {
        return service.post('/contract-client-web/contract/queryDeptTree', params);
    },
    // 查询员工 OA
    queryDeptStaffList(params) {
        return service.post('/contract-client-web/contract/queryDeptStaffList', params);
    },
    // 查询logo图
    // getLoginSystemUrl(params) {
    //     return service.post(process.env.VUE_APP_BASE_G_API + "/uc-saas/uc-saas-api/menu/getLoginSystemUrl", params);
    // },
      // 获取菜单信息
  getUserInfoResp(params) {
    return service.post(process.env.VUE_APP_BASE_G_API +'/uc-saas/uc-saas-api/menu/getUserInfoResp', params)
  },
  // 获取登录协议列表
  queryPlateFormTreatyListNew(params) {
    return service.post(process.env.VUE_APP_BASE_Z_API + '/scm-whale-pc/plateFormTreaty/queryPlateFormTreatyListNew', params)
  },
  // 获取登录协议详情
  queryPlateFormTreatyByContentId(params) {
    return service.post(process.env.VUE_APP_BASE_Z_API + '/scm-whale-pc/plateFormTreaty/queryPlateFormTreatyByContentId', params)
  },
}